package com.it.a01oopextendsdemo1;

public class Test {
    public static void main(String[] args) {
        //创建对象并调用

        //1.创建布偶猫的对象
        Ragdoll rd = new Ragdoll();
        rd.eat();
        rd.drink();
        rd.catchMouse();

        //2.创建哈士奇对象
        Husky h = new Husky();
        h.eat();
        h.drink();
        h.LookHome();
        h.breakhome();
    }
}
